package day0320;

import java.util.Arrays;
import java.util.Random;

public class Test9 {
    public static void main(String[] args) {
        //1.定义一个存储了四个数的数组nums
        String[] cards=new String[54];
        int j=2;
        for (int i = 0; i <= 48; i=i+4) {
            if( i ==0){
                cards[i]="♥A";
                cards[i+1]="♠A";
                cards[i+2]="♣A";
                cards[i+3]="♦A";
            }else if(i ==40){
                cards[i]="♥J";
                cards[i+1]="♠J";
                cards[i+2]="♣J";
                cards[i+3]="♦J";
            }else if(i ==44){
                cards[i]="♥Q";
                cards[i+1]="♠Q";
                cards[i+2]="♣Q";
                cards[i+3]="♦Q";
            }else if(i ==48){
                cards[i]="♥K";
                cards[i+1]="♠K";
                cards[i+2]="♣K";
                cards[i+3]="♦K";
            }else  {
                cards[i] = "♥" + (i -j);//4 2      8  5       12  8     16  11
                cards[i+1] = "♠" + (i -j);
                cards[i+2] = "♣" + (i -j);
                cards[i+3] = "♦" + (i -j);
                j=j+3;
            }
        }
        /*for (int i = 0; i < 13; i++) {
            if( (i+1) ==1){
                cards[i]="♥A";
            }else if((i+1) ==11){
                cards[i]="♥J";
            }else if((i+1) ==12){
                cards[i]="♥Q";
            }else if((i+1) ==13){
                cards[i]="♥K";
            }else {
                cards[i] = "♥" + (i + 1);
            }
        }
        for (int i = 13; i < 26; i++) {
            cards[i]="♠"+ (i-12);
        }
        for (int i = 26; i < 39; i++) {
            cards[i]="♣"+ (i-25);
        }
        for (int i = 39; i < 52; i++) {
            cards[i]="♦"+ (i-38);
        }*/
        cards[cards.length-2]="小王";
        cards[cards.length-1]="大王";
        System.out.println(Arrays.toString(cards));

    }
}
